﻿<%@ Page Language="C#" MasterPageFile="~/ProductManager/ProductManage.Master" AutoEventWireup="true" CodeFile="LockedUsers.aspx.cs" Inherits="GoShopping.Web.SystemManager.LockedUsers" Title="无标题页" %>
<%@ Register assembly="ExtensionGridView" namespace="ExtensionControls" tagprefix="cc1" %>
<%@ MasterType VirtualPath="~/ProductManager/ProductManage.Master" %> 
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    会员锁定页<table class="style1">
        <tr>
            <td style="width: 50px">
                操作:</td>
            <td>
                <asp:Button ID="btnUnlock" runat="server" Text="解锁" onclick="btnUnlock_Click" />
            </td>
        </tr>
    </table>
    <table class="style1" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td class="style3" colspan="2">
            <cc1:ExtensionGridView ID="extGVUser" runat="server" 
                AutoGenerateColumns="False" PagerText="当前第{0}页,共{1}页{2}条记录" 
                RecordCount="-1" AllowPaging="True" 
                AllowSorting="True" AutoSort="True" EmptyDataText="没有锁定的会员！" 
                onrowcommand="extGVUser_RowCommand" Width="800px" 
                onpageindexchanging="extGVUser_PageIndexChanging" SortAscImageUrl="" 
                SortDescImageUrl="" PageSize="15">
                <Columns>
                    <asp:TemplateField>
                        <HeaderTemplate>
                            <asp:CheckBox ID="cbAll" runat="server" 
                                oncheckedchanged="cbAll_CheckedChanged" AutoPostBack="true" />
                        </HeaderTemplate>
                        <ItemTemplate>
                            <asp:CheckBox ID="cbSingle" runat="server" />
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="ID" Visible="False">
                        <ItemTemplate>
                            <asp:Label ID="lblID" runat="server" Text='<%# Eval("UserName") %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="操作">
                        <ItemTemplate>
                            <asp:LinkButton ID="lbtnEdit" runat="server" 
                                CommandArgument='<%# Eval("UserName") %>'>详细</asp:LinkButton>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="用户名">
                        <ItemTemplate>
                            <asp:Label ID="lblName" runat="server" Text='<%# Eval("UserName") %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="验证?">
                        <ItemTemplate>
                            <asp:Label ID="lblIntegration" runat="server" Text='<%# ChangeToChinese(Eval("IsApproved")) %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="锁定?">
                        <ItemTemplate>
                            <asp:Label ID="lblGiftMoney" runat="server" Text='<%# ChangeToChinese(Eval("IsLockedOut")) %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="在线?">
                        <ItemTemplate>
                            <asp:Label ID="lblSex" runat="server" Text='<%# ChangeToChinese(Eval("IsOnline")) %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="创建时间">
                        <ItemTemplate>
                            <asp:Label ID="lblVocation" runat="server" Text='<%# Eval("CreationDate") %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="最后登录时间">
                        <ItemTemplate>
                            <asp:Label ID="lblBirthday" runat="server" Text='<%# Eval("LastLoginDate") %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="上次锁定时间">
                        <ItemTemplate>
                            <asp:Label ID="lblZipCode" runat="server" Text='<%# Eval("LastLockoutDate") %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                </Columns>
                <HeaderStyle HorizontalAlign="Center" />
            </cc1:ExtensionGridView>
            </td>
        </tr>
        <tr>
            <td class="style3" style="width: 100px">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
     </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
